import * as tslib_1 from "tslib";
import { Entity, NgField, NgObject, NgEntity } from '@farris/devkit';
import { AttachmentInfo32a2Entity } from './attachmentinfo32a2entity';
var ScfaEntity = /** @class */ (function (_super) {
    tslib_1.__extends(ScfaEntity, _super);
    function ScfaEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ScfaEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ParentID',
            dataField: 'parentID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ParentID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ScfaEntity.prototype, "parentID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'xfrq',
            dataField: 'xfrq',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'xfrq',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], ScfaEntity.prototype, "xfrq", void 0);
    tslib_1.__decorate([
        NgObject({
            dataField: 'fjxx',
            originalDataField: 'fjxx',
            type: AttachmentInfo32a2Entity
        }),
        tslib_1.__metadata("design:type", AttachmentInfo32a2Entity)
    ], ScfaEntity.prototype, "fjxx", void 0);
    ScfaEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "scfa",
            nodeCode: "scfas",
            allowEmpty: true
        })
    ], ScfaEntity);
    return ScfaEntity;
}(Entity));
export { ScfaEntity };
